﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using System.Collections;
using Delonix_Regia_Hotel_Management_System.Class;

namespace Delonix_Regia_Hotel_Management_System
{
    public partial class Main__Receptionist_ : Form
    {
        public Main__Receptionist_()
        {
            InitializeComponent();
        }

        private void btnRoomFunctions_Click(object sender, EventArgs e)
        {
            Room_Functions RF = new Room_Functions();
            this.Hide();
            RF.Show(); 
        }

        private void bthHHK_Click(object sender, EventArgs e)
        {
            Housekeeping_and_Staff_Information HASI = new Housekeeping_and_Staff_Information();
            this.Hide();
            HASI.Show();

        }

        private void btnReports_Click(object sender, EventArgs e)
        {
            if (LogInClass.position == "Administrator")
            {
                Reports_for_Management_and_Adminstrator RA = new Reports_for_Management_and_Adminstrator();
                this.Hide();
                RA.Show();
            }
            else if (LogInClass.position == "Receptionist")
            {
                Report_for_Receptionist mainR = new Report_for_Receptionist();
                this.Hide();
                mainR.Show();
            }
            else
            {
                Reports_for_Management_and_Adminstrator RM = new Reports_for_Management_and_Adminstrator();
                this.Hide();
                RM.Show();
            }
        }

        private void button1_Click(object sender, EventArgs e)
        {
            if (LogInClass.position == "Administrator")
            {
                Main__Management_and_Administrator_ mainA = new Main__Management_and_Administrator_();
                this.Hide();
                mainA.Show();
            }
            else
            {
                Main__Receptionist_ mainR = new Main__Receptionist_();
                this.Hide();
                mainR.Show();
            }
        }

        private void button2_Click(object sender, EventArgs e)
        {
            Form1 F = new Form1();
            this.Hide();
            F.Show(); 
        }
    }
}
